#include "pch.h"
#include "NativeBuffer.h"

NativeBuffer::~NativeBuffer()
{
}

HRESULT NativeBuffer::RuntimeClassInitialize(BYTE *buffer, UINT32 length)
{
	m_buffer = buffer;
	m_length = length;

	return S_OK;
}

HRESULT NativeBuffer::Buffer(BYTE **value)
{
	*value = m_buffer;

	return S_OK;
}

HRESULT NativeBuffer::get_Capacity(UINT32 *value)
{
	*value = m_length;

	return S_OK;
}

HRESULT NativeBuffer::get_Length(UINT32 *value)
{
	*value = m_length;

	return S_OK;
}

HRESULT NativeBuffer::put_Length(UINT32 value)
{
	m_length = value;

	return S_OK;
}